package cn.ipokerface.api.annotation;

import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Created by       PokerFace
 * Create Date      2019-12-10.
 * Email:           <a href="mailto:214888341@163.com">214888341@163.com</a>
 * Version          1.0.0
 * <p>
 * Description:
 */




@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RUNTIME)
@Documented
@Repeatable(ApiModelProperty.ApiModelProperties.class)
public @interface ApiModelProperty {

    String key();

    String name();

    boolean required() default true;



    @Target({ElementType.METHOD, ElementType.FIELD})
    @Retention(RUNTIME)
    @Documented
    public @interface ApiModelProperties{
        ApiModelProperty[] value();
    }
}
